package android.medicalcloud.com.yiapp.yilian.ui;

import android.medicalcloud.com.yiapp.R;
import android.medicalcloud.com.yiapp.base.activity.BaseActivity;
import android.medicalcloud.com.yiapp.yilian.ui.view.CommonTitleView;
import android.medicalcloud.com.yiapp.yilian.utils.android.IntentTool;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

/**
 * Created by wanggenlin on 17-5-18.
 */
public class OrderDetailActivity extends BaseActivity {
    CommonTitleView titleView;
    LinearLayout container;
    @Override
    protected void initView() {
        titleView =(CommonTitleView) findViewById(R.id.titleView);
        titleView.setTitleText("订单详情");
        container = (LinearLayout)findViewById(R.id.container);
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData() {
        for (int i=0;i<3;i++){
            View view = LayoutInflater.from(this).inflate(R.layout.view_pation_item,null,false);
            view.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    IntentTool.patient(OrderDetailActivity.this,null);
                }
            });
            container.addView(view);
        }

    }

    @Override
    protected int getLayoutId() {
        return R.layout.ac_order_detail;
    }
}
